package fr.bda.httpbus.common;

/**
 * This class represent a data available on the server
 * 
 * @author BARET
 * @since 06/10/2012
 * @version 1.0 - Initialization of the class
 * 
 * 
 */
public class HttpBusData {

	/** The data ID */
	private Long dataId;

	/** The content of the data */
	private byte[] content;

	/** The data type */
	private String type;

	/** The total length of the data */
	private int length;

	/** The current data position */
	private int curPos;

	public Long getDataId() {
		return dataId;
	}

	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getCurPos() {
		return curPos;
	}

	public void setCurPos(int curPos) {
		this.curPos = curPos;
	}
}
